<?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:33:"themes/guolvqi/portal\\index.html";i:1528876564;s:83:"E:\phpworkspace\huyang\lvqingqi\php\ThinkCMF\public\themes\guolvqi\public\base.html";i:1526978336;s:85:"E:\phpworkspace\huyang\lvqingqi\php\ThinkCMF\public\themes\guolvqi\public\header.html";i:1528795623;s:88:"E:\phpworkspace\huyang\lvqingqi\php\ThinkCMF\public\themes\guolvqi\public\searchbar.html";i:1526867172;s:83:"E:\phpworkspace\huyang\lvqingqi\php\ThinkCMF\public\themes\guolvqi\public\left.html";i:1527149999;s:85:"E:\phpworkspace\huyang\lvqingqi\php\ThinkCMF\public\themes\guolvqi\public\footer.html";i:1528876696;}*/ ?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo $site_info['site_seo_title']; ?>-<?php echo $site_info['site_name']; ?></title>
<meta name="description" content="<?php echo $site_info['site_seo_description']; ?>" />
<meta name="keywords" content="<?php echo $site_info['site_seo_keywords']; ?>">
<link href="/themes/guolvqi/templates/default/css/style.css"  rel="stylesheet">
<script src="/themes/guolvqi/templates/default/js/jquery.js" ></script>
<script src="/themes/guolvqi/templates/default/js/dtlb.js" ></script>
<script src="/themes/guolvqi/templates/default/js/cpczjz.js"></script>
<script src="/themes/guolvqi/templates/default/js/jquery.superslide2.js" ></script>

<script src="/themes/guolvqi/templates/default/js/jquery.min.js" ></script>
<script src="/themes/guolvqi/templates/default/js/gotop.js" ></script>

</head>
<body>

<div id="iheader">
  <div class="iheader_jz">
    <div class="tel_sy" > <span><img src="/themes/guolvqi/templates/default/images/toptel.jpg"   alt="咨询热线" /></span> </div>
    <div class="logo" valign="top">
      <h1><a href="/"  title=""><img src="/themes/guolvqi/templates/default/images/logo.jpg" alt="" /></a></h1>
    </div>
  </div>
</div>
<nav>
	<div class="menu">
	      <!--后台导航 id 为1-->
		<?php

function __parse_navigation4cb4fa46822b209310b039f2760a3ce6($menus,$level=1){
$_parse_navigation_func_name = '__parse_navigation4cb4fa46822b209310b039f2760a3ce6';
if(is_array($menus) || $menus instanceof \think\Collection || $menus instanceof \think\Paginator): if( count($menus)==0 ) : echo "" ;else: foreach($menus as $key=>$menu): if(empty($menu['children'])): ?>
    <li class="">
    
		        <a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>" target="<?php echo (isset($menu['target']) && ($menu['target'] !== '')?$menu['target']:''); ?>"><?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?></a>
		    
    </li>
<?php endif; if(!empty($menu['children'])): ?>
    <li class="dropdown dropdown-custom dropdown-custom-level-<?php echo $level; ?>">
        
		        <a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>" class="dropdown-toggle dropdown-toggle-<?php echo $level; ?>" data-toggle="dropdown">
		            <?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?><span class="caret"></span>
		        </a>
		    
        <ul class="nav_sub ">
            <?php 
            $mLevel=$level+1;
             ?>
            <?php echo $_parse_navigation_func_name($menu['children'],$mLevel); ?>
        </ul>
    </li>
<?php endif; endforeach; endif; else: echo "" ;endif; 
}

    $navMenuModel = new \app\admin\model\NavMenuModel();
    $menus = $navMenuModel->navMenusTreeArray('1',0);
if('ul'==''): ?>
    <?php echo __parse_navigation4cb4fa46822b209310b039f2760a3ce6($menus); else: ?>
    <ul id="top-nav" class="nav navbar-nav">
        <?php echo __parse_navigation4cb4fa46822b209310b039f2760a3ce6($menus); ?>
    </ul>
<?php endif; ?>

	</div>
</nav> 


<!-- 代码 开始 -->
<!-- <div class="banner" id="flashs">
	<?php if(isset($theme_vars['banner'])): if(is_array($theme_vars['banner']) || $theme_vars['banner'] instanceof \think\Collection || $theme_vars['banner'] instanceof \think\Paginator): $i = 0; $__LIST__ = $theme_vars['banner'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
			<div class="bgitem" style="background-image:url(upload/<?php echo $vo['img']; ?>)"; title="<?php echo $vo['remark']; ?>" id="flashbg<?php echo $key; ?>"></div>
		<?php endforeach; endif; else: echo "" ;endif; endif; ?>
  	<div class="banner_ctrl"> <a href="javascript:void(0);" class="prev"></a> <a href="javascript:void(0);" class="next"></a> </div>
</div> -->
<!-- 代码 结束 -->
<!-- 代码 开始 -->
<div class="banner" id="flashs">
				<div class="bgitem" style="background-image:url(/upload/admin/20180518/614e03223bc319d368e7334d0cd9b741.jpg)"; title="1" id="flashbg0"></div>
					<div class="bgitem" style="background-image:url(/upload/admin/20180518/d76a998c3c23d74d571caeb20b73d193.jpg)"; title="2" id="flashbg1"></div>
					<div class="bgitem" style="background-image:url(/upload/admin/20180518/52fadc11b9552d89da146d6dda8fb1e3.jpg)"; title="3" id="flashbg2"></div>
		  	<div class="banner_ctrl"> <a href="javascript:void(0);" class="prev"></a> <a href="javascript:void(0);" class="next"></a> </div>
</div>
<!-- 代码 结束 -->


<div class="juzhong_sy">
  <div class="topnav">
    <div class="tel">
     <div class="fl hotSea fs14 font_w">
			<span class="fb">热门搜索：</span>
			<a href="#"  title="互换进口滤芯">互换进口滤芯</a>
			<a href="#"  title="液压润滑滤芯">液压润滑滤芯</a>
			<a href="#"  title="精密滤芯">精密滤芯</a>
	</div>
    </div>
    <div id="search_sy">
      <form action="<?php echo url('portal/search/index'); ?>" method="post" name="formSeach" id="formSeach" onsubmit="Seach()">
        <input type="hidden" name="mod" value="search">
        <input name="keyword" type="text" class="input_text" value="关键词" onfocus="if(this.value=='关键词'){this.value='';}"  onblur="if(this.value==''){this.value='关键词';}" />
        <input type="submit" value="" class="btn_search" onclick="doAdvancedSearchSubmit('')"/>
      </form>
    </div>
  </div>
</div>


<div id="imain">
  <div class="sycpfl">
    <div class="sycpfltitle">
      <p><a href="lvxinzhongxin.html" tppabs="http://www.hndyjh.com/lvxinzhongxin.html" title="产品分类">产品分类</a></p>
      <span>Product Category</span></div>
    <div class="sycpfllist">
		 <?php
$portal_all_sub_categories_data = \app\portal\service\ApiService::allSubCategories(2,6);
 if(is_array($portal_all_sub_categories_data) || $portal_all_sub_categories_data instanceof \think\Collection || $portal_all_sub_categories_data instanceof \think\Paginator): $i = 0; $__LIST__ = $portal_all_sub_categories_data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

		    <dl>
		        <dt>
		        	<a href="<?php echo url('portal/List/index',['id'=>$vo['id']]); ?>" title="<?php echo $vo['name']; ?>"><?php echo $vo['name']; ?></a>
		        </dt>
		    </dl>
		
<?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
	
	
	
	
    <div class="sylxfx">
      <p><?php echo $site_info['site_mobile']; ?></p>
      <p><?php echo $site_info['site_phone']; ?></p>
    </div>
  </div>
  
  <div class="syrxcp">
    <div class="iprotitle"><a href="<?php echo url('portal/list/index',['id'=>2]); ?>">more+</a>
      <h3>热门推荐</h3>
      <span>hot products</span></div>
    <div class="clear" style="height:30px;"></div>
    <div class="iprolist">
    	<?php 
    		$categoryIds = [2,5,6,7,8,9,10,11,12,13,14];
    		$where = "post.recommended = 1";
    	 
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => $where,
    'limit'   => '',
    'order'   => 'post.post_order desc,post.published_time desc',
    'page'    => '12',
    'relation'=> 'categories',
    'category_ids'=>$categoryIds
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$article): $mod = ($i % 2 );++$i;?>

			<div class="procn00" >
		        <h3><a href="<?php echo url('portal/Article/index',array('cid'=>$article['category_id'],'id'=>$article['id'])); ?>" title="<?php echo $article['post_title']; ?>" >
		        <?php if(!(empty($article['more']['thumbnail']) || (($article['more']['thumbnail'] instanceof \think\Collection || $article['more']['thumbnail'] instanceof \think\Paginator ) && $article['more']['thumbnail']->isEmpty()))): ?>
					<img src=" <?php echo cmf_get_image_url($article['more']['thumbnail']); ?>" style='max-width:210px;max-height:170px;'  alt="<?php echo $article['post_title']; ?>"/>
				<?php endif; ?>
		        </a></h3>
		        <p><a href="<?php echo url('portal/Article/index',array('cid'=>$article['category_id'],'id'=>$article['id'])); ?>" title="<?php echo $article['post_title']; ?>"><?php echo $article['post_title']; ?></a></p>
		    </div>
		
<?php endforeach; endif; else: echo "" ;endif; ?>
     </div>
  </div>
</div>
<div class="clear" style="height:40px;"></div>
<div class="demo_adv"><a href="<?php echo url('portal/page/index',['id'=>2]); ?>" title="立即咨询"></a></div>
<div class="clear" style="height:40px;"></div>
<div class="youshi">
  <div class="youshin">

   
  </div>
</div>
<div class="clear" style="height:40px;"></div>
<div class="demo_adv1"><a href="<?php echo url('portal/page/index',['id'=>2]); ?>" title="立即咨询"></a></div>
<div class="clear" style="height:40px;"></div>


<div class="inews">
  <div class="zknews">
    <div class="zknewstitle"> <a href="<?php echo url('portal/page/index',['id'=>1]); ?>" >查看详情+</a>
      <h3>关于我们</h3>
    </div>
    <?php 
		$page_id=1;
		$page=\app\portal\service\ApiService::page($page_id);
	 ?>
    <div class="ihotnews">
      <h3>
      	<a href="<?php echo url('portal/page/index',['id'=>1]); ?>" title="<?php echo $site_info['site_name']; ?>">
	      	<?php if(!(empty($page['more']['thumbnail']) || (($page['more']['thumbnail'] instanceof \think\Collection || $page['more']['thumbnail'] instanceof \think\Paginator ) && $page['more']['thumbnail']->isEmpty()))): ?>
			   <img src=" <?php echo cmf_get_image_url($page['more']['thumbnail']); ?>"/>
			<?php endif; ?>
      	</a>
      </h3>
      <h4>
        <p><?php echo $site_info['site_name']; ?></p>
        
		<!--页面标题-->
        <span>
        	<a href="<?php echo url('portal/page/index',['id'=>1]); ?>" title="<?php echo $site_info['site_name']; ?>">
        	<?php echo mb_substr($page['post_content'],0,200,'utf-8'); ?>... 
        	</a>
        </span>
      </h4>
    </div>
    <div class="clear" style="height:20px;"></div>
  </div>
  <div class="hynews">
    <div class="zknewstitle"> <a href="<?php echo url('portal/list/index',['id'=>1]); ?>">查看详情+</a>
      <h3>新闻资讯</h3>
    </div>
    <div class="hynewslist">
		<ul>
			<?php
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => "",
    'limit'   => '',
    'order'   => 'post.post_hits desc',
    'page'    => '7',
    'relation'=> 'categories',
    'category_ids'=>'1'
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

				<li><a href="<?php echo url('portal/Article/index',array('cid'=>$vo['category_id'],'id'=>$vo['id'])); ?>" title="<?php echo $vo['post_title']; ?>" ><span><?php echo date('Y-m-d',$vo['published_time']); ?></span><?php echo mb_substr($vo['post_title'],0,15,'utf-8'); ?>...</a></li>
           
<?php endforeach; endif; else: echo "" ;endif; ?>
		</ul>
    </div>
  </div>
</div>
<div class="clear" style="height:40px;"></div>
<div class="imain">
  <div class="ihonortitle">
    <h3>昌平滤器产品展示
      <p>Product</p>
    </h3>
  </div>
  <div class="clear" style="height:20px;"></div>
  <div class="ihonor">
    <div id="demo1p">
      <div id="indemo1p">
        <div id="demo1p1">
			<?php $categoryIds = [2,5,6,7,8,9,10,11,12,13,14]; 
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => "",
    'limit'   => '',
    'order'   => 'post.post_order desc,post.post_hits desc',
    'page'    => '20',
    'relation'=> 'categories',
    'category_ids'=>$categoryIds
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$article): $mod = ($i % 2 );++$i;?>

				<div class="procn00" >
			        <h3><a href="<?php echo url('portal/Article/index',array('cid'=>$article['category_id'],'id'=>$article['id'])); ?>" title="<?php echo $article['post_title']; ?>" >
			        <?php if(!(empty($article['more']['thumbnail']) || (($article['more']['thumbnail'] instanceof \think\Collection || $article['more']['thumbnail'] instanceof \think\Paginator ) && $article['more']['thumbnail']->isEmpty()))): ?>
						<img src=" <?php echo cmf_get_image_url($article['more']['thumbnail']); ?>" style='max-width:210px;max-height:170px;'  alt="<?php echo $article['post_title']; ?>"/>
					<?php endif; ?>
			        </a></h3>
			        <p><a href="<?php echo url('portal/Article/index',array('cid'=>$article['category_id'],'id'=>$article['id'])); ?>" title="<?php echo $article['post_title']; ?>"><?php echo $article['post_title']; ?></a></p>
			    </div>
			
<?php endforeach; endif; else: echo "" ;endif; ?>
                    
                            </div>
        <div id="demo1p2"> </div>
      </div>
    </div>
    <script>
	<!--
	var speed3=35; //数字越大速度越慢
	var tab30=document.getElementById("demo1p");
	var tab31=document.getElementById("demo1p1");
	var tab32=document.getElementById("demo1p2");
	tab32.innerHTML=tab31.innerHTML;
	function Marquee3(){
	if(tab32.offsetWidth-tab30.scrollLeft<=0)
	tab30.scrollLeft-=tab31.offsetWidth
	else{
	tab30.scrollLeft++;
	}
	}
	var MyMar3=setInterval(Marquee3,speed3);
	tab30.onmouseover=function() {clearInterval(MyMar3)};
	tab30.onmouseout=function() {MyMar3=setInterval(Marquee3,speed3)};
	-->
	</script> 
  </div>
</div>
﻿<div class="clear" style="height:20px;"></div>
﻿<div id="ifooter">
	
	<?php 
		$controller = request()->controller();
	 ?>
	
	<div class="link">
	<?php if($controller == 'Index'): ?>
	  <div class="link_left">友情链接</div>
	  <div class="link_right">
	  	 <?php
     $__LINKS__ = \app\admin\service\ApiService::links();
if(is_array($__LINKS__) || $__LINKS__ instanceof \think\Collection || $__LINKS__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LINKS__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

            <a href="<?php echo (isset($vo['url']) && ($vo['url'] !== '')?$vo['url']:''); ?>" target="<?php echo (isset($vo['target']) && ($vo['target'] !== '')?$vo['target']:''); ?>"><?php echo (isset($vo['name']) && ($vo['name'] !== '')?$vo['name']:''); ?></a>&nbsp;
     	
<?php endforeach; endif; else: echo "" ;endif; ?>
	  </div>
	<?php endif; ?>
	</div>
	
	<div class="ifootnav">
		<!--后台导航 id 为1-->
		<?php

function __parse_navigationbe7664b8c77f8c3211d2da0be57e6d6e($menus,$level=1){
$_parse_navigation_func_name = '__parse_navigationbe7664b8c77f8c3211d2da0be57e6d6e';
if(is_array($menus) || $menus instanceof \think\Collection || $menus instanceof \think\Paginator): if( count($menus)==0 ) : echo "" ;else: foreach($menus as $key=>$menu): if(empty($menu['children'])): ?>
    
		        <a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>" target="<?php echo (isset($menu['target']) && ($menu['target'] !== '')?$menu['target']:''); ?>"><?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?></a><span>|</span>
		    
<?php endif; endforeach; endif; else: echo "" ;endif; 
}

    $navMenuModel = new \app\admin\model\NavMenuModel();
    $menus = $navMenuModel->navMenusTreeArray('2',0);
if(''==''): ?>
    <?php echo __parse_navigationbe7664b8c77f8c3211d2da0be57e6d6e($menus); else: ?>
    < id="top-nav" class="nav navbar-nav">
        <?php echo __parse_navigationbe7664b8c77f8c3211d2da0be57e6d6e($menus); ?>
    </>
<?php endif; ?>

	</div>
	<div class="copyright">
	版权所有 Copyright © 2018-2019<?php echo $site_info['site_name']; ?>&nbsp;&nbsp;技术支持：<a href='http://www.huyang1688.com'>胡杨网络</a>&nbsp;&nbsp;<a href='/admin' target='_blank'>后台管理</a> 
	</div> 
</div>

<script>
$(function() {
	// 悬浮窗口
	$(".yb_conct").hover(function() {
		$(".yb_conct").css("right", "5px");
		$(".yb_bar .yb_ercode").css('height', '200px');
	}, function() {
		$(".yb_conct").css("right", "-127px");
		$(".yb_bar .yb_ercode").css('height', '53px');
	});
	// 返回顶部
	$(".yb_top").click(function() {
		$("html,body").animate({
			'scrollTop': '0px'
		}, 300)
	});
});
</script>
<div class="yb_conct" style="right: -127px;">
  <div class="yb_bar">
    <ul>
      <li class="yb_top">返回顶部</li>
      <li class="yb_phone"><?php echo $site_info['site_phone']; ?></li>      
      <li class="yb_QQ"> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $site_info['site_qq']; ?>&site=qq&menu=yes" title="qq">在线咨询</a> </li>
      <li class="yb_ercode" >手机打开网站 <br>
        <img class="hd_qr" src="/themes/guolvqi/templates/default/images/ewm.png" alt="微信" > </li>
    </ul>
  </div>
</div>

﻿
</body>

</html>



